<!--  -->
<template>
  <div class="">
    <van-nav-bar
      left-arrow="true"
      @click-left="onClickLeftSub"
      title="咨询经纪人"
    />
    <div class="title-top">有任何买卖房屋问题，欢迎随时咨询~</div>
    <van-list>
      <van-cell v-for="n in 9" :key="n" @click="agent">
        <div class="small-back-container">
          <div>
            <img src="../assets/women.png" class="avart" />
            <div style="display: inline-block">
              <div class="up-sub-grand-container">
                <span class="intro-title thirty-font">刘胡兰</span>
                <div class="label-button lable-button-gray-color">
                  <van-icon name="star-o" color="red" class="back-button" />
                  <span class="judge-value-label">4.7分</span>
                </div>
                <div class="label-button lable-button-gray-color">
                  金色-云台店
                </div>
              </div>
              <div>
                <span class="middle-span"
                  >共带看本房22次，最新带看：2018.05.29</span
                >
              </div>
            </div>
          </div>
          <van-icon name="phone" color="red" class="back-button" />
        </div>
        <div class="desc">我最近带看本房12次，了解本房特色</div>
      </van-cell>
    </van-list>
    <van-popup v-model="show" position="bottom">
      <van-list>
        <van-cell @click="callphone"> 4000608064 转 9371 </van-cell>
        <van-cell @click="callphone"> 呼叫 </van-cell>
        <van-cell @click="close"> 取消 </van-cell>
      </van-list>
    </van-popup>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {
      show: false,
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    showPopup() {
      this.show = true;
    },
    agent() {
      this.show = true;
    },
    close() {
      this.show = false;
    },

    onClickLeftSub() {
      this.$router.back();
    },
    callphone() {
      window.location.href = "tel:15657106289";
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped>
/* @import url(); 引入公共css类 */
.title-top {
  font-size: 12px;
  font-family: Source Han Sans SC;
  font-weight: 400;
  color: #999999;
  background: #e1e1e1;
  height: 25px;
  line-height: 25px;
  text-align: center;
}
.twenty-size {
  float: left;
  height: 10px;
  width: 10px;
}
.judge-value-label {
  color: #e75c61;
  font-size: 11px;
}
.avart {
  width: 40px;
  height: 40px;
  padding-right: 10px;
}
.up-sub-grand-container {
  display: flex;
  justify-content: flex-start;
}
.intro-title {
  color: #333333;
  font-size: 19px;
}
.back-button {
  width: 13px;
  height: 13px;
}
.thirty-font {
  font-size: 15px;
}
.label-button {
  padding: 0px 6px;
  margin-left: 10px;
  font-size: 11px;
  border-radius: 2px;
  display: inline-block;
  text-align: center;
  height: auto;
  /* line-height: 11px; */
}
.lable-button-green-color {
  color: #00c482;
  background-color: rgba(0, 196, 130, 0.2);
}
.lable-button-orange-color {
  color: #ff8957;
  background-color: rgba(255, 137, 87, 0.2);
}
.lable-button-cyan-color {
  color: #56c1ff;
  background-color: rgba(86, 193, 255, 0.2);
}
.lable-button-gray-color {
  color: #666666;
  background-color: #eeeeee;
}
.middle-span {
  color: #999999;
  font-size: 12px;
  width: auto;
}
.small-back-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.desc {
  font-size: 14px;
  font-family: Source Han Sans SC;
  font-weight: 400;
  color: #333333;
  line-height: 20px;
}
.van-cell {
  padding: 10px 20px;
}
.van-cell__value--alone {
  font-size: 15px;
  font-family: Source Han Sans SC;
  font-weight: 400;
  color: #333333;
  text-align: center;
}
</style>
